package com.danceforyou.common.model.view;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 类名称：BizData4Page
 * 创建人：danceforyou
 * 创建时间：2020年03月15日
 * 版本号：1.0v
 */
public class BizData4Page<T> implements Serializable {

    /*总条数*/
    private int total = 0;
    /*总页数*/
    private int page = 0;
    /*每页条数*/
    private int pageSize = 30;
    /*当前页数*/
    private int pageNo = 1;
    /*是否统计数据*/
    private boolean isStat = false;
    /*排序使用字段*/
    private String orderBy = "id";
    /*排序列的顺序（ASC或DESC）*/
    private String sortBy = "ASC";
    /*查询条件*/
    private Map<String, Object> condition = new HashMap<>();
    /*结果数据*/
    private List<T> rowList;
    /*统计数据*/
    private Map<String, Object> statData;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public boolean isStat() {
        return isStat;
    }

    public void setStat(boolean stat) {
        isStat = stat;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public Map<String, Object> getCondition() {
        return condition;
    }

    public void setCondition(Map<String, Object> condition) {
        this.condition = condition;
    }

    public List<T> getRowList() {
        return rowList;
    }

    public void setRowList(List<T> rowList) {
        this.rowList = rowList;
    }

    public Map<String, Object> getStatData() {
        return statData;
    }

    public void setStatData(Map<String, Object> statData) {
        this.statData = statData;
    }
}
